package com.gzm.user.books.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gzm.framework.mybatisplus.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author GZM
 * @since 2021-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Book extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 书名
     */
    private String bookName;

    /**
     * 作者
     */
    private String bookAuthor;

    /**
     * 简述
     */
    private String bookDescribe;

    /**
     * 书本数量
     */
    private Integer bookQuantuity;

    /**
     * 书本类型
     */
    private Integer bookType;
    /**
     * 书本索引
     */
    private String bookIndex;

    /**
     * 出版时间
     */
    private LocalDate publicationTime;

    /**
     * 是否存在pdf(1 是 2 否)
     */
    private Integer isPdf;

    /**
     * 是否删除(1 是 2 否)
     */
    private Integer isDelete;


}
